package com.hl.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 优惠券领取记录对象 coupon_receive_record
 * 
 * @author ruoyi
 * @date 2025-01-08
 */
public class CouponReceiveRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long id;

    /** 关联用户表ID */
    @Excel(name = "关联用户表ID")
    private Long userId;

    /** 关联优惠券表ID */
    @Excel(name = "关联优惠券表ID")
    private Long couponId;

    /** 获取方式（如：免费获取） */
    @Excel(name = "获取方式", readConverterExp = "如=：免费获取")
    private String obtainMethod;

    /** 领取后状态（如：已领取） */
    @Excel(name = "领取后状态", readConverterExp = "如=：已领取")
    private String couponStatus;

    /** 品类描述（如：全品类） */
    @Excel(name = "品类描述", readConverterExp = "如=：全品类")
    private String categoryDesc;

    /** 领取时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "领取时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date receiveTime;

    // 关联查询字段
    /** 会员名称 */
    private String memberName;

    /** 优惠券名称 */
    private String couponName;

    /** 发布店铺 */
    private String issuingStore;

    /** 面额/折扣 */
    private String amount;

    /** 使用门槛 */
    private String usageThreshold;

    /** 优惠券类型 */
    private String couponType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }
    public void setObtainMethod(String obtainMethod) 
    {
        this.obtainMethod = obtainMethod;
    }

    public String getObtainMethod() 
    {
        return obtainMethod;
    }
    public void setCouponStatus(String couponStatus) 
    {
        this.couponStatus = couponStatus;
    }

    public String getCouponStatus() 
    {
        return couponStatus;
    }
    public void setCategoryDesc(String categoryDesc) 
    {
        this.categoryDesc = categoryDesc;
    }

    public String getCategoryDesc() 
    {
        return categoryDesc;
    }
    public void setReceiveTime(Date receiveTime) 
    {
        this.receiveTime = receiveTime;
    }

    public Date getReceiveTime() 
    {
        return receiveTime;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }

    public String getIssuingStore() {
        return issuingStore;
    }

    public void setIssuingStore(String issuingStore) {
        this.issuingStore = issuingStore;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getUsageThreshold() {
        return usageThreshold;
    }

    public void setUsageThreshold(String usageThreshold) {
        this.usageThreshold = usageThreshold;
    }

    public String getCouponType() {
        return couponType;
    }

    public void setCouponType(String couponType) {
        this.couponType = couponType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("couponId", getCouponId())
            .append("obtainMethod", getObtainMethod())
            .append("couponStatus", getCouponStatus())
            .append("categoryDesc", getCategoryDesc())
            .append("receiveTime", getReceiveTime())
            .append("memberName", getMemberName())
            .append("couponName", getCouponName())
            .append("issuingStore", getIssuingStore())
            .append("amount", getAmount())
            .append("usageThreshold", getUsageThreshold())
            .append("couponType", getCouponType())
            .toString();
    }
}